/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.builder;

import ac.za.designPatterns.creational.builder.factory.MealBuilder;
import ac.za.designPatterns.creational.builder.model.MealOrder;

/**
 *
 * @author 210012285
 */
public class DriverMain {
    public static void main(String[] args){
        MealOrder order = new MealBuilder.Builder("Burger")
                .chips("fries")
                .drink("drink")
                .iceCream("chocolate ice cream")
                .toys("McDonald's soldier man").build();
        
        
        System.out.print("The order has "+ order.getBurger()+"\n");
        System.out.print("The order has "+ order.getChips()+"\n");
        System.out.print("The order has "+ order.getDrink()+"\n");
        System.out.print("The order has "+ order.getIceCream()+"\n");
        System.out.print("The order has "+ order.getToys());
        
        
    
    }
    
}
